﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BaopxFramework.Common.Method
{
    public static class ExtensionMethod
    {
        public static string Standard(this string value)
        {
            return value;
        }
        public static int ToInt(this object value)
        {
            return Convert.ToInt32(value);
        }
        public static decimal ToDecimal(this object value)
        {
            return Convert.ToDecimal(value);
        }
        public static DateTime ToDateTime(this object value)
        {
            return Convert.ToDateTime(value);
        }
        public static bool ToBool(this object value)
        {
            return Convert.ToBoolean(value);
        }
    }
}
